<script>on openBackgroundglobal mapLocSI, footprintsSI, completeSIif there is a window "mainMenu" then close window "mainMenu"repeat with x = 1 to the number of bg buttonsset the icon of bg button x to 0if the short name of bg button x is in footprintsSI thenset the style of bg button x to transparentelse set the style of bg button x to opaqueend repeatif mapLocSI is not empty then ¬set the icon of bg button mapLocSI to "openCrossGray"if the number of items in footprintsSI > 8 and completeSI ≠ "done" thenput "done" into completeSIanswer "Congratulations! You have completed this stack."end ifend openBackground</script>